package com.example.swimmingpool.mapper.course_selection;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.swimmingpool.entity.base.BaseModel;
import com.example.swimmingpool.entity.course_selection.CourseSelection;
import com.example.swimmingpool.qo.course_selection.CourseSelectionQo;
import com.example.swimmingpool.vo.course_selection.CourseSelectionVo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CourseSelectionMapper extends BaseMapper<CourseSelection> {
    Long isChooseCourse(@Param("courseId") Long courseId, @Param("userId") Long userId);

    IPage<CourseSelectionVo> getSelectCourses(IPage<CourseSelectionVo> page, @Param("qo") CourseSelectionQo qo);
}
